package com.topnav.mc.zzd.bean;

import lombok.Data;

/**
 * @Author: kenny
 * @Date: 2024/3/5 15:05
 */
@Data
public class UpdateCount {
    private Integer successCount=0;
    private Integer failedCount=0;
    private Integer curr=0;
    private Integer total=0;
    private StringBuffer msgs = new StringBuffer();

    public synchronized void updateCurr(int count){
        this.curr = this.curr + count;
    }

    public synchronized void updateSuccess(int count){
        this.successCount = this.successCount + count;
    }

    public synchronized void updateFaild(int count){
        this.failedCount = this.failedCount + count;
    }

}
